*, *:before, *:after {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
}

body, ul {
    margin: 0;
    padding: 0;
}

body {
    color: #4d4d4d;
    font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
    background-size: cover;
}

ul {
    list-style: none;
}

#chat {
    margin: 20px auto;
    width: 800px;
    height: 600px;
}


#chat {
    overflow: hidden;
    border-radius: 3px
}

#chat .main, #chat .sidebar {
    height: 100%
}

#chat .sidebar {
    float: left;
    width: 200px;
    color: #f4f4f4;
    background-color: #2e3238
}

#chat .main {
    position: relative;
    overflow: hidden;
    background-color: #eee
}

#chat .m-text {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0
}

#chat .m-message {
    height: calc(100% - 10pc)
}


.m-card {
    padding: 9pt;
    border-bottom: 1px solid #24272c
}

.m-card footer {
    margin-top: 10px
}

.m-card .avatar, .m-card .name {
    vertical-align: middle
}

.m-card .avatar {
    border-radius: 2px
}

.m-card .name {
    display: inline-block;
    margin: 0 0 0 15px;
    font-size: 1pc
}

.m-card .search {
    padding: 0 10px;
    width: 100%;
    font-size: 9pt;
    color: #fff;
    height: 30px;
    line-height: 30px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    outline: 0;
    background-color: #26292e
}


.m-list li {
    padding: 9pt 15px;
    border-bottom: 1px solid #292c33;
    cursor: pointer;
    -webkit-transition: background-color .1s;
    transition: background-color .1s
}

.m-list li:hover {
    background-color: hsla(0, 0%, 100%, .03)
}

.m-list li.active {
    background-color: hsla(0, 0%, 100%, .1)
}

.m-list .avatar, .m-list .name {
    vertical-align: middle
}

.m-list .avatar {
    border-radius: 2px
}

.m-list .name {
    display: inline-block;
    margin: 0 0 0 15px
}


.m-text {
    height: 10pc;
    border-top: 1px solid #ddd
}

.m-text textarea {
    padding: 10px;
    height: 100%;
    width: 100%;
    border: none;
    outline: 0;
    font-family: Micrsofot Yahei;
    resize: none
}


.m-message {
    padding: 10px 15px;
    overflow-y: scroll
}

.m-message li {
    margin-bottom: 15px
}

.m-message .time {
    margin: 7px 0;
    text-align: center
}

.m-message .time > span {
    display: inline-block;
    padding: 0 18px;
    font-size: 9pt;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc
}

.m-message .avatar {
    float: left;
    margin: 0 10px 0 0;
    border-radius: 3px
}

.m-message .text {
    display: inline-block;
    position: relative;
    padding: 0 10px;
    max-width: calc(100% - 40px);
    min-height: 30px;
    line-height: 2.5;
    font-size: 9pt;
    text-align: left;
    word-break: break-all;
    background-color: #fafafa;
    border-radius: 4px
}

.m-message .text:before {
    content: " ";
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa
}

.m-message .self {
    text-align: right
}

.m-message .self .avatar {
    float: right;
    margin: 0 0 0 10px
}

.m-message .self .text {
    background-color: #b2e281
}

.m-message .self .text:before {
    right: inherit;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #b2e281
}


#chat {
    overflow: hidden;
    border-radius: 3px
}

#chat .main, #chat .sidebar {
    height: 100%
}

#chat .sidebar {
    float: left;
    width: 200px;
    color: #f4f4f4;
    background-color: #2e3238
}

#chat .main {
    position: relative;
    overflow: hidden;
    background-color: #eee
}

#chat .m-text {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0
}

#chat .m-message {
    height: calc(100% - 10pc)
}


.m-card {
    padding: 9pt;
    border-bottom: 1px solid #24272c
}

.m-card footer {
    margin-top: 10px
}

.m-card .avatar, .m-card .name {
    vertical-align: middle
}

.m-card .avatar {
    border-radius: 2px
}

.m-card .name {
    display: inline-block;
    margin: 0 0 0 15px;
    font-size: 1pc
}

.m-card .search {
    padding: 0 10px;
    width: 100%;
    font-size: 9pt;
    color: #fff;
    height: 30px;
    line-height: 30px;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    outline: 0;
    background-color: #26292e
}

.m-list li {
    padding: 9pt 15px;
    border-bottom: 1px solid #292c33;
    cursor: pointer;
    -webkit-transition: background-color .1s;
    transition: background-color .1s
}

.m-list li:hover {
    background-color: hsla(0, 0%, 100%, .03)
}

.m-list li.active {
    background-color: hsla(0, 0%, 100%, .1)
}

.m-list .avatar, .m-list .name {
    vertical-align: middle
}

.m-list .avatar {
    border-radius: 2px
}

.m-list .name {
    display: inline-block;
    margin: 0 0 0 15px
}

.m-text {
    height: 10pc;
    border-top: 1px solid #ddd
}

.m-text textarea {
    padding: 10px;
    height: 100%;
    width: 100%;
    border: none;
    outline: 0;
    font-family: Micrsofot Yahei;
    resize: none
}

.m-message {
    padding: 10px 15px;
    overflow-y: scroll
}

.m-message li {
    margin-bottom: 15px
}

.m-message .time {
    margin: 7px 0;
    text-align: center
}

.m-message .time > span {
    display: inline-block;
    padding: 0 18px;
    font-size: 9pt;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc
}

.m-message .avatar {
    float: left;
    margin: 0 10px 0 0;
    border-radius: 3px
}

.m-message .text {
    display: inline-block;
    position: relative;
    padding: 0 10px;
    max-width: calc(100% - 40px);
    min-height: 30px;
    line-height: 2.5;
    font-size: 9pt;
    text-align: left;
    word-break: break-all;
    background-color: #fafafa;
    border-radius: 4px
}

.m-message .text:before {
    content: " ";
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa
}

.m-message .self {
    text-align: right
}

.m-message .self .avatar {
    float: right;
    margin: 0 0 0 10px
}

.m-message .self .text {
    background-color: #b2e281
}

.m-message .self .text:before {
    right: inherit;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #b2e281
}

.m-button{
    width: 100%;
    height: 40px;
    position: absolute;
    bottom: 0;
    border-top:1px solid #fff;
    border-radius: 0;
    background-color: #2e3238;
    border-left: none;
    border-bottom: none;
    border-right: none;
    color: white;
    outline: none;
}
.m-button:hover{
    background-color: #42464c;
    cursor:pointer;
}

.modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: table;
    transition: opacity .3s ease;
}

.modal-wrapper {
    display: table-cell;
    vertical-align: middle;
}

.modal-container {
    background-color: #2e3238;
    width: 300px;
    height: 480px;
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .33);
    transition: all .3s ease;
    font-family: Helvetica, Arial, sans-serif;
}

.modal-header h3 {
    margin-top: 0;
    color: #42b983;
}

.modal-enter .modal-container .modal-leave .modal-container {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.friend-add{
    background-color: rgba(0, 0, 0, 0);
    color: #33FF99;
    border: 1px solid #33FF99;
    float: right;
    height: 30px;
    outline: none;
}

.friend-add:hover{
    background-color: #66CC99;
    cursor:pointer;
    color: #fff;
}